using System;
using System.ComponentModel.DataAnnotations;

namespace ERP.OrderManage.Dtos
{
    /// <summary>
    /// 创建销售发货订单明细DTO
    /// </summary>
    public class CreateSaleSendOrderDetailDto
    {
        /// <summary>
        /// 送货主表ID
        /// </summary>
        [Required(ErrorMessage = "送货主表ID不能为空")]
        public int SaleOrderId { get; set; }

        /// <summary>
        /// 销售订单产品ID1
        /// </summary>
        public int? SaleOrderProductId1 { get; set; }

        /// <summary>
        /// 销售订单产品ID2
        /// </summary>
        public int? SaleOrderProductId2 { get; set; }

        /// <summary>
        /// 产品编码
        /// </summary>
        public string? ProductCode { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string? ProductName { get; set; }

        /// <summary>
        /// 材质等级
        /// </summary>
        public string? MaterialGrade { get; set; }

        /// <summary>
        /// 颜色
        /// </summary>
        public string? Color { get; set; }

        /// <summary>
        /// 送货数量
        /// </summary>
        [Required(ErrorMessage = "送货数量不能为空")]
        public decimal DeliveryQuantity { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string? Unit { get; set; }

        /// <summary>
        /// 金额（VARCHAR类型）
        /// </summary>
        public decimal AmountVARCHAR { get; set; }

        /// <summary>
        /// 金额（DECIMAL类型）
        /// </summary>
        public decimal AmountDECIMAL { get; set; }

        /// <summary>
        /// 仓库编码
        /// </summary>
        public string? WarehouseCode { get; set; }

        /// <summary>
        /// 仓库名称
        /// </summary>
        public string? WarehouseName { get; set; }

        /// <summary>
        /// 客户PO
        /// </summary>
        public string? CustomerPO { get; set; }

        /// <summary>
        /// SKU
        /// </summary>
        public string? SKU { get; set; }
    }
} 